package com.yiyi.credit.manage.abutment.client;


import com.yiyi.credit.manage.abutment.common.bean.Response;
import com.yiyi.credit.manage.model.vo.RoleVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(value = "yiyi-credit-manage-sso-api")
public interface RoleClient {


    @RequestMapping(value = "/userapi/system/role/getSysRoleList", method = RequestMethod.POST)
    Response<List<RoleVo>> getSysRoleList(@RequestParam(value = "sysInfoId") Long sysInfoId);


    @RequestMapping(value = "/userapi/system/role/addSysRole", method = RequestMethod.POST)
    Response addSysRole(@RequestParam(value = "sysInfoId") Long sysInfoId,
                        @RequestParam(value = "roleName") String roleName);


}
